// 状态类型
import types from './action_types'
// 公共状态
const commonState = {
  userInfo: {}
}
export default (state = commonState, action) => {
  switch (action.type) {
    case types.UP_USERINFO:
      return Object.assign({}, state, action.payload)
      break
    default:
      return state
  }
}
